﻿@model SoftHotel.Models.DetallePrecio

@{
    ViewBag.Title = "Lista de precios: Agregar servicio";
}

<h2>Agregar servicio</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Servicio</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.sede)
        </div>
        <div class="editor-field">
            @Html.DropDownList("idSede")
            @Html.ValidationMessageFor(model => model.idSede)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.pUnidadMedida)
        </div>
        <div class="editor-field">
            @Html.DropDownList("unidadMedida", String.Empty)
            @Html.ValidationMessageFor(model => model.unidadMedida)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.servicio)
        </div>
        <div class="editor-field">
            @Html.DropDownList("idServicio", String.Empty)
            @Html.ValidationMessageFor(model => model.idServicio)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.pMoneda)
        </div>
        <div class="editor-field">
            @Html.DropDownList("moneda", String.Empty)
            @Html.ValidationMessageFor(model => model.moneda)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.fechaActivacion)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.fechaActivacion, new {@Value = DateTime.Now.ToString(), @readonly = "readonly"})
            @Html.ValidationMessageFor(model => model.fechaActivacion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.precio)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.precio)
            @Html.ValidationMessageFor(model => model.precio)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "Edit", new { id = ViewBag.idS })
</div>
